<%@ page language="java" import="java.util.*,com.zjut.zs.user.manager.*, com.zjut.zs.user.dao.*,com.zjut.zs.userstatus.dao.*, com.zjut.zs.userstatus.manager.*, com.zjut.an.util.system.*,com.zjut.an.util.tools.*" pageEncoding="utf-8"%>
<%@ page import="com.zjut.zs.userstatus.dao.ZsUserStatus" %>

<%
if (session.getAttribute("admin") == null) {
	out.print("<script>alert('由于长时间未操作，系统已经自动注销，请重新登录');</script>");
	out.print("<script>top.window.location='../admin/AdminLogin.jsp';</script>");
	out.close();
    return;
} else {
	ZsUserManager umanager = (ZsUserManager) SpringContextUtil.getBean("ZsUserManager");
	ZsUserStatusManager smanager = (ZsUserStatusManager) SpringContextUtil.getBean("ZsUserStatusManager");

	String usId = request.getParameter("usId");
	ZsUser obj = umanager.getData(usId);
	session.setAttribute("zsUser", obj);
	ZsUserStatus status = smanager.getDataByUser(obj);
	session.setAttribute("zsUserStatus", status);
	out.print("<script>alert('即将切换至考生页面');</script>");
	out.print("<script>top.window.location='../st/index.jsp';</script>");

}
%>